package com.yy.micro.magic.data.repository;

import com.yy.micro.magic.data.entity.CodeMapItemEntity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CodeItemRepository extends JpaRepository<CodeMapItemEntity,Long> {

    List<CodeMapItemEntity> findByCodeIdAndDisable(Long codeId,boolean disable);

    CodeMapItemEntity findByCodeIdAndSrcValueAndDisable(Long codeId,String srcValue,boolean disable);
}
